<template>
	<view>
		<TkiQrCode
			ref="qrCode"
			:value="qrValue"
			:size="200"
			:logo="logoUrl"
			@result="onQrCodeResult"
		/>
	</view>
</template>

<script>
import TkiQrCode from '@/components/TkiQrCode/TkiQrCode.vue';

export default {
	components: {
		TkiQrCode,
	},
	data() {
		return {
			qrValue: 'https://baidu.com',
			logoUrl: '/static/images/common/logo.png',
		};
	},
	methods: {
		onQrCodeResult(filePath) {
			console.log('二维码生成成功:', filePath);
		},
	},
};
</script>
